package com.haoze.nurse.service.impl;

import com.haoze.common.response.Result;
import com.haoze.common.response.ResultGenerator;
import com.haoze.nurse.dao.PuncureChannleMapper;
import com.haoze.nurse.service.TransfusionService;
import com.haoze.nurse.vo.PuncureChannleVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.*;

@Service
public class TransfusionServiceImpl implements TransfusionService {

    @Resource
    PuncureChannleMapper puncureChannleMapper;




    @Override
    public Result infusionCenterList(String qrCode) {
        //根据住院号，获得所有的穿刺部位等信息
        List<PuncureChannleVo> puncureChannleEntities = puncureChannleMapper.selectInfoByQrCode(qrCode);
        return ResultGenerator.genOkResult(puncureChannleEntities);
    }
}
